package com.suiwei.webservice.base.weather.client;

import com.suiwei.webservice.base.weather.WeatherWS;import com.suiwei.webservice.base.weather.WeatherWSSoap;import com.suiwei.webservice.base.weather.ArrayOfString;

import java.util.List;

/**
 * @author suiwei
 * @date 2023-04-25 10:43
 */
public class Demo {
    public static void main(String[] args) {
        //WeatherWS相当于一个工厂
        WeatherWS weatherWS = new WeatherWS();
        WeatherWSSoap weatherWSSoap = weatherWS.getWeatherWSSoap();
        ArrayOfString weather = weatherWSSoap.getWeather("寿光", "eb244b6a5d974a89af80403c1fbbf85e");
        List<String> string = weather.getString();
        System.out.println(string);

    }
}
